import { http } from '../common/axios_config/axios_config.js'
//获取管理员列表
export const getAdminInfo = data => http('admin/getAdminList', data, 'GET')

//删除用户
export const delAdmin = data => http('admin/delAdmin', data, 'GET')

//添加或编辑用户
export const addOrEditAdmin = data => http('admin/addOrEditAdmin', data, 'POST')

//模糊查询和分页查询管理员
export const adminListPage = data => http("admin/adminListPage", data, "GET")

//根据用户的uid查询该用户
export const getByUid = data => http("admin/getByUid", data, "POST")

//批量删除
export const batchDelete = data => http("admin/batchDelete", data, "POST")

//重置密码
export const resetPassword = data => http("admin/resetPassword", data, "POST")

//修改个人密码modifyPassword
//重置密码
export const modifyPassword = data => http("admin/modifyPassword", data, "POST")

//根据用的role获取该用户的权限菜单列表
export const getRoleMenus = data => http("admin/getRoleMenus", data, "POST")

export const exportAdmin = data => http("admin/export", data, "GET")

//获取微信用户
export const geWuserList = data => http("wx/wuserListPage", data, "GET")